package com.duobaoyu.dby.supply.admin.config;

import com.duobaoyu.dby.supply.biz.interceptor.TableQueryHeadInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName WebMvcConfig
 * @createTime 13:45:00 2023/10/07
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new TableQueryHeadInterceptor())
                .addPathPatterns("/**");
    }
}
